package com.gome.ocean.service.authority;

import java.util.List;

import com.github.pagehelper.Page;
import com.gome.ocean.dao.model.authority.Role;

/**
 * Created by liuqingxia on 2016/6/1.
 */
public interface RoleService {

    public Long insertRole(Role role);

    public boolean removeRole(Long id);

    public boolean updateRole(Role role);

    public Page<Role> findAllRoles(int pageNum, int pageSize);

    public Role findRoleById(Long id);
    
    public Role getRoleByRoleName(String roleName);
    
    public List<Role> getAllRoles();

}
